package com.studykun.client.model.js;

import com.google.gwt.core.client.JavaScriptObject;

public class JsCard extends JavaScriptObject {
  protected JsCard() {
  }
  
  public final native String kanji() /*-{
    return this.kanji;
  }-*/;
  
  public final native String english() /*-{
    return this.english;
  }-*/;
  
  public final native String hiragana() /*-{
    return this.hiragana;
  }-*/;
  
  public final native int progress() /*-{
    if (!("progress" in this)) {
      this.progress = 0;
    }
    return this.progress;
  }-*/;
  
  public final native int progress(
      final int value) /*-{
    this.progress = value;
    return value;
  }-*/;
  
  public final native boolean selected() /*-{
    if (!("selected" in this)) {
      this.selected = true;
    }
    return this.selected;
  }-*/;

  public final native boolean selected(
      final boolean value) /*-{
    this.selected = value;
    return value;
  }-*/;
}
